package com.itrip.biz.service;

import com.itrip.beans.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itrip.beans.vo.CommentCountVo;
import com.itrip.beans.vo.CommentListVo;
import com.itrip.beans.vo.HotelScoreVo;
import com.itrip.beans.vo.PageVo;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author 周勉
 * @since 2020-02-28
 */
public interface CommentService extends IService<Comment> {
    //查询评分
    public HotelScoreVo getHotelScore(Integer hotelId);

    //根据酒店 id查 询 评 论 数量
    public CommentCountVo getCount(Integer hotelId);

    //根据条件查询 评论
    public PageVo<Comment> getCommentList(CommentListVo vo);

    Comment getLastComment();
}
